package com.kws.payment.service.impl;

import com.kws.payment.business.WeixinH5PayBusiness;
import com.kws.payment.dao.CreateWeixinPayOrderRq;
import com.kws.payment.service.WeixinH5PayService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <b>WeixinH5PayServiceImpl</b>
 *
 * @description: WeixinH5PayServiceImpl <br>
 * @date: 2024/11/13 15:34 <br>
 * @author: lhm <br>
 * @version: 1.0 <br>
 */

@Service
public class WeixinH5PayServiceImpl implements WeixinH5PayService {
    private static final Logger logger = LoggerFactory.getLogger(WeixinH5PayServiceImpl.class);

    @Autowired
    private WeixinH5PayBusiness weixinH5PayBusiness;


    @Override
    public String createWeixinH5PayOrder(CreateWeixinPayOrderRq rq) {
        return weixinH5PayBusiness.createWeixinH5PayOrder(rq);
    }

    @Override
    public void closeWeixinH5PayOrder(String orderNo) {
        weixinH5PayBusiness.weixinH5PayCloseOrder(orderNo);
    }
}
